// 关于评论请求
import request from '@/utils/request.js'

/**
 * 获取评论列表
 * @param {*} params {}
 * @returns
 */
export const getCommenList = params => {
  return request({
    url: '/v1_0/comments',
    method: 'GET',
    params
  })
}

/**
 * 发布评论
 * @param {Object} data
 * @returns
 */
export const postComment = data => {
  return request({
    url: '/v1_0/comments',
    method: 'POST',
    data
  })
}
